package com.yunc.shop.mq.disruptor;

import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户变化信息
 *
 * @author taocongcong
 * @create 2021-01-13 10:08
 */
@Data
@Builder
@NoArgsConstructor
public class SysUserUpdateEvent {

    private String userId;

    private String extendId;

    public SysUserUpdateEvent(String userId) {
        this.userId = userId;
    }

    public SysUserUpdateEvent(String userId, String extendId) {
        this.userId = userId;
        this.extendId = extendId;
    }

    @Override
    public String toString() {
        return "SysUserUpdateEvent{" +
                "userId='" + userId + '\'' +
                ", extendId='" + extendId + '\'' +
                '}';
    }
}
